package ideamaps.settings;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "custlistitem")
public class CustlistItem {
	private Integer id;

	private Integer uniqueId;
	private String value;
	private String value2;
	private String abbr;
	private Integer sequence;
	private boolean inactive;
	private Custlist custlist;
	private float max;
	private float min;
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)		
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getAbbr() {
		return abbr;
	}
	public void setAbbr(String abbr) {
		this.abbr = abbr;
	}
	public boolean isInactive() {
		return inactive;
	}
	public void setInactive(boolean inactive) {
		this.inactive = inactive;
	}
	public Integer getUniqueId() {
		return uniqueId;
	}
	public void setUniqueId(Integer uniqueId) {
		this.uniqueId = uniqueId;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Integer getSequence() {
		return sequence;
	}
	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	
	public String getValue2() {
		return value2;
	}
	public void setValue2(String value2) {
		this.value2 = value2;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "custlist_id",insertable=false,updatable=false)
	public Custlist getCustlist() {
		return custlist;
	}
	public void setCustlist(Custlist custlist) {
		this.custlist = custlist;
	}
	public float getMax() {
		return max;
	}
	public void setMax(float max) {
		this.max = max;
	}
	public float getMin() {
		return min;
	}
	public void setMin(float min) {
		this.min = min;
	}
	

	
	
}
